/*
 *  Copyright (C) 2010 Matthias Buch-Kromann <mbk.isv@cbs.dk>
 * 
 *  This file is part of the MatrixParser package.
 *  
 *  The MatrixParser program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Lesser General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 * 
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Lesser General Public License for more details.
 * 
 *  You should have received a copy of the GNU Lesser General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package org.osdtsystem.matrixparser.featureextraction;

import org.osdtsystem.matrixparser.parsers.output.DependencyTree;
import org.osdtsystem.matrixparser.features.FeatureVector;
import org.osdtsystem.matrixparser.parsers.ParsingModel;

/**
 *
 * @author Matthias Buch-Kromann <mbk.isv@cbs.dk>
 */
public class HigherOrderEisner extends AbstractHigherOrderExtractor {
    // Genes
    static final String name = "eisner";
    static final int genes = 0;

    public HigherOrderEisner(ParsingModel model) {
        super(model, name, genes);
    }

    public void extractHigherOrder(FeatureVector fv, DependencyTree tree, int node) {
        // From "Dependency Parsing by Belief Propogation", Jason Eisner and Noah Smith
        
        // GRAND: "In the GRAND factors, features fire for particular triples of tags and of coarse tags.
        // A feature also fires if the grandparent falls between the child and the parent."

        // CHILDSEQ: "The CHILDSEQ factors included features for tags, and likewise coarse tags, on adjacent
        // sibling pairs and parent-sibling-sibling triples. Each of these features also have versions that
        // were conjoined with link direction -- pairs of directions in the parent case -- or with
        // signed link length of the child or farther sibling. Lengths were binned per McDonald et al. (2005)."

        // NOCROSS: "The NOCROSS_jl factors consider the tag and coarse tag attributes of the two child
        // words j and l, separately or jointly.
    }
}
